package com.liguang.rcs.admin.db.repository;

import com.liguang.rcs.admin.db.entity.DodmsRoleEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DodmsRoleRepository extends JpaRepository<DodmsRoleEntity, Long>,
        JpaSpecificationExecutor<DodmsRoleEntity> {

    List<DodmsRoleEntity> findByIdInAndEnabledAndDeleted(List<Long> roleIds, boolean enabled, boolean deleted);

    List<DodmsRoleEntity> findByNameAndDeleted(String name, boolean deleted);

    List<DodmsRoleEntity> findByDeleted(boolean deleted);
}
